package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.ExamQuestions;
import com.example.demo.mapper.ExamPaperMapper;
import com.example.demo.service.ExamQuestionsService;
import com.example.demo.mapper.ExamQuestionsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 18364
* @description 针对表【exam_questions】的数据库操作Service实现
* @createDate 2023-09-18 11:27:57
*/
@Service
public class ExamQuestionsServiceImpl extends ServiceImpl<ExamQuestionsMapper, ExamQuestions>
    implements ExamQuestionsService{
    @Autowired
    ExamQuestionsMapper examQuestionsMapper;
    @Override
    public List<ExamQuestions> selectAll() {
        List<ExamQuestions> list=examQuestionsMapper.selectList(null);
        return list;
    }

    @Override
    public ExamQuestions selectById(String id) {
        ExamQuestions examQuestions=examQuestionsMapper.selectById(id);
        return examQuestions;
    }
}




